package com.bw.day03.adapter

import com.bw.base.net.entity.OrderDetail
import com.bw.day03.R
import com.bw.day03.util.GlideUtlis
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class PreOrderAdapter: BaseQuickAdapter<OrderDetail, BaseViewHolder>(R.layout.item_preorder) {
    override fun convert(
        holder: BaseViewHolder,
        item: OrderDetail
    ) {
        GlideUtlis.loadNormal(context,item.image,holder.getView(R.id.preoder_iv))
        holder.setText(R.id.preoder_storename,item.productName)
        holder.setText(R.id.preorder_sku,item.sku)
        holder.setText(R.id.preorder_price,"￥"+item.price)
        holder.setText(R.id.preorder_num,"x"+item.payNum)
    }
}